import { get, post, upload } from '@/utils/request.js'
import Config from '@/config'

export default {
  getInfo(id) {
    return get(Config.API_VERSION + '/TargetClients/BasicInformation/GetBasicInfoEditVM', { id: id })
  },
  update(id, data) {
    data.id = id
    // 如果organization（parentID）是新建的则是负值，后端将0识别为新建的organization
    if (data.parentID < 0) data.parentID = 0
    return post(Config.API_VERSION + '/TargetClients/BasicInformation/UpdateBasicInfo', data)
  }
}
